# -*- coding: utf-8 -*-
from flask import Flask,url_for,redirect,render_template
app = Flask(__name__)
@app.route('/')
def index():
    title = 'python key-value'
    author = 'tom_x'
    # return render_template('0302index.html', var1=title, var2=author)
    return render_template('index.html', **locals())
@app.route('/user/<username>')
def user(username):
    return render_template('user.html', name=username)

if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0', port=8888)